<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>公安申请记录列表</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<button onclick="window.history.back();" value="回退">回退</button>

<div class="container">

    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small>公安申请记录列表--显示所有申请</small>
                </h1>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-4 column">

            <a class="btn btn-primary" href="${pageContext.request.contextPath}/applyrecord/toaddapplyrecord">增加申请</a>
        </div>
    </div>




    <%--
        <div class="row">
            <div class="col-md-4 column">

                <a class="btn btn-primary" href="${pageContext.request.contextPath}/user/todeleteuser">删除用户</a>
            </div>
        </div>
        <div class="row">
            <div class="col-md-4 column">

                <a class="btn btn-primary" href="${pageContext.request.contextPath}/user/toupdateuser">更新用户</a>
            </div>
        </div>
    --%>



    <div class="row clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>物证申请ID</th>
                    <th>物证ID</th>
                    <th>物证状态</th>
                    <th>申请者ID</th>
                    <th>审核ID</th>
                    <th>申请者姓名</th>
                    <th>审核人姓名</th>
                    <th>审核结果</th>
                    <th>结果原因</th>



                </tr>
                </thead>

                <tbody id="applylist">
                <c:forEach var="applyrecord" items="${applyrecord}">
                    <tr>
                        <td>${applyrecord.evidenceApplyId}</td>
                        <td>${applyrecord.evidenceId}</td>
                        <td>${applyrecord.evidenceState}</td>
                        <td>${applyrecord.submitterId}</td>
                        <td>${applyrecord.judgerId}</td>
                        <td>${applyrecord.submitterName}</td>
                        <td>${applyrecord.judgerName}</td>
                        <td>${applyrecord.judge}</td>
                        <td>${applyrecord.judgeReason}</td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>
<%--
<script>

  function openResult(userId) {
    if(confirm("请注意：您确定要删除整条数据吗？")){　　//否则如果 满足条件 弹出确认框！
      top.location.href = 'deleteuser?userId=' + userId;
    } else{　//如果点了取消
      alert("取消");
      return false;
    }
  }






</script>--%>
